
<%@ page import="fleet_management.DriverDetails" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'driverDetails.label', default: 'DriverDetails')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#list-driverDetails" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="list-driverDetails" class="content scaffold-list" role="main">
			<h1><g:message code="default.list.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<div id="scrolls">
			<div id="tableWrapp2">
			<table>
				<thead>
					<tr>
					
						<g:sortableColumn property="driverName" title="${message(code: 'driverDetails.driverName.label', default: 'NameOfDriver')}" />
						
						<g:sortableColumn property="adminRole" title="${message(code: 'driverDetails.adminRole.label', default: 'Region')}" />
					
						<g:sortableColumn property="permanentResidenceAddress" title="${message(code: 'driverDetails.permanentResidenceAddress.label', default: 'PermanentResidenceAdd')}" />
					
						<g:sortableColumn property="contactNumber" title="${message(code: 'driverDetails.contactNumber.label', default: 'ContactNumber')}" />
						
						<g:sortableColumn property="licenseNumber" title="${message(code: 'driverDetails.licenseNumber.label', default: 'LicenseNumber')}" />
						
						<g:sortableColumn property="currentLocation" title="${message(code: 'driverDetails.currentLocation.label', default: 'CurrentLocation')}" />
												
						<g:sortableColumn property="dateOfBirth" title="${message(code: 'driverDetails.dateOfBirth.label', default: 'DateofBirth')}" />
						
						<g:sortableColumn property="approximateYearOfRetirement" title="${message(code: 'driverDetails.approximateYearOfRetirement.label', default: 'Apprx.YearOfRetirement')}" />
						
						<g:sortableColumn property="dateOfJoinSC" title="${message(code: 'driverDetails.dateOfJoinSC.label', default: 'DateOfJoinSC')}" />
						
						<g:sortableColumn property="noOfYearAtCurrentLocation" title="${message(code: 'driverDetails.noOfYearAtCurrentLocation.label', default: 'No.OfYearAtCurrentLocation')}" />
						
						<g:sortableColumn property="remarks" title="${message(code: 'driverDetails.remarks.label', default: 'Remarks')}" />
						
						
					
					</tr>
				</thead>
				<tbody>
				<g:each in="${driverDetailsInstanceList}" status="i" var="driverDetailsInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
					
						<td><g:link action="show" id="${driverDetailsInstance.id}">${fieldValue(bean: driverDetailsInstance, field: "driverName")}</g:link></td>
						
						<td>${fieldValue(bean: driverDetailsInstance, field: "adminRole")}</td>
					
						<td>${fieldValue(bean: driverDetailsInstance, field: "permanentResidenceAddress")}</td>
					
						<td>${fieldValue(bean: driverDetailsInstance, field: "contactNumber")}</td>
						
						<td>${fieldValue(bean: driverDetailsInstance, field: "licenseNumber")}</td>
						
						<td>${fieldValue(bean: driverDetailsInstance, field: "currentLocation")}</td>
						
						<td><g:formatDate format="MMMM dd, yyyy"
										date="${driverDetailsInstance.dateOfBirth}" /></td>
						
						<td>${fieldValue(bean: driverDetailsInstance, field: "approximateYearOfRetirement")}</td>
						
						<td><g:formatDate format="MMMM dd, yyyy"
										date="${driverDetailsInstance.dateOfJoinSC}" /></td>

						
						
						<td>${fieldValue(bean: driverDetailsInstance, field: "noOfYearAtCurrentLocation")}</td>
						
						<td>${fieldValue(bean: driverDetailsInstance, field: "remarks")}</td>
					
						
					
					</tr>
				</g:each>
				</tbody>
			</table>
			</div>
			</div>
			<div class="pagination">
				<g:paginate total="${driverDetailsInstanceTotal}" />
			</div>
		</div>
	</body>
</html>
